

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>aiy.vision.models &mdash; AIY Projects 2018-11-16 documentation</title>
  

  
  
  
  

  
  <script type="text/javascript" src="_static/js/modernizr.min.js"></script>
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
        <script src="_static/jquery.js"></script>
        <script src="_static/underscore.js"></script>
        <script src="_static/doctools.js"></script>
        <script src="_static/language_data.js"></script>
    
    <script type="text/javascript" src="_static/js/theme.js"></script>

    

  
  <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="_static/custom.css" type="text/css" />
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Voice Kit overview" href="voice.html" />
    <link rel="prev" title="aiy.vision.inference" href="aiy.vision.inference.html" /> 
</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="index.html" class="icon icon-home"> AIY Projects
          

          
          </a>

          
            
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption"><span class="caption-text">Common APIs</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="aiy.board.html">aiy.board</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.leds.html">aiy.leds</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.pins.html">aiy.pins</a></li>
</ul>
<p class="caption"><span class="caption-text">Vision Kit APIs</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="vision.html">Overview</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.toneplayer.html">aiy.toneplayer</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.trackplayer.html">aiy.trackplayer</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.vision.annotator.html">aiy.vision.annotator</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.vision.inference.html">aiy.vision.inference</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">aiy.vision.models</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#module-aiy.vision.models.dish_classification">aiy.vision.models.dish_classification</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-aiy.vision.models.dish_detection">aiy.vision.models.dish_detection</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-aiy.vision.models.face_detection">aiy.vision.models.face_detection</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-aiy.vision.models.image_classification">aiy.vision.models.image_classification</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-aiy.vision.models.inaturalist_classification">aiy.vision.models.inaturalist_classification</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-aiy.vision.models.object_detection">aiy.vision.models.object_detection</a></li>
</ul>
</li>
</ul>
<p class="caption"><span class="caption-text">Voice Kit APIs</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="voice.html">Overview</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.assistant.html">aiy.assistant</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.cloudspeech.html">aiy.cloudspeech</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.voice.audio.html">aiy.voice.audio</a></li>
<li class="toctree-l1"><a class="reference internal" href="aiy.voice.tts.html">aiy.voice.tts</a></li>
</ul>
<p class="caption"><span class="caption-text">Other docs</span></p>
<ul>
<li class="toctree-l1"><a class="reference external" href="https://github.com/google/aiyprojects-raspbian">Source code (GitHub)</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/CHANGES.md">Change log (GitHub)</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/HACKING.md">Software setup (GitHub)</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/CONTRIBUTING.md">Contribution guide (GitHub)</a></li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">AIY Projects</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="index.html">Docs</a> &raquo;</li>
        
      <li>aiy.vision.models</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="_sources/aiy.vision.models.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="aiy-vision-models">
<h1>aiy.vision.models<a class="headerlink" href="#aiy-vision-models" title="Permalink to this headline">¶</a></h1>
<p>A collection of modules that perform ML inferences with specific types of
image classification and object detection models.</p>
<p>Each of these modules has a corresponding sample app in
<a class="reference external" href="https://github.com/google/aiyprojects-raspbian/tree/aiyprojects/src/examples/vision">src/examples/vision</a>.
Also see the instructions to <a class="reference external" href="https://aiyprojects.withgoogle.com/models/">run the models with the Vision Kit</a>.</p>
<div class="section" id="module-aiy.vision.models.dish_classification">
<span id="aiy-vision-models-dish-classification"></span><h2>aiy.vision.models.dish_classification<a class="headerlink" href="#module-aiy.vision.models.dish_classification" title="Permalink to this headline">¶</a></h2>
<p>API for Dish Classification.</p>
<dl class="function">
<dt id="aiy.vision.models.dish_classification.get_classes">
<code class="sig-prename descclassname">aiy.vision.models.dish_classification.</code><code class="sig-name descname">get_classes</code><span class="sig-paren">(</span><em class="sig-param">result</em>, <em class="sig-param">top_k=None</em>, <em class="sig-param">threshold=0.0</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.dish_classification.get_classes" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts dish classification model output to list of detected objects.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>result</strong> – output tensor from dish classification model.</p></li>
<li><p><strong>top_k</strong> – int; max number of objects to return.</p></li>
<li><p><strong>threshold</strong> – float; min probability of each returned object.</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><p>string, probability: float) pairs ordered by
probability from highest to lowest. The number of pairs is not greater than
top_k. Each probability is greater than threshold. For
example:</p>
<dl class="simple">
<dt>[(‘Ramen’, 0.981934)</dt><dd><p>(‘Yaka mein, 0.005497)]</p>
</dd>
</dl>
</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>A list of (class_name</p>
</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.dish_classification.model">
<code class="sig-prename descclassname">aiy.vision.models.dish_classification.</code><code class="sig-name descname">model</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.dish_classification.model" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-aiy.vision.models.dish_detection">
<span id="aiy-vision-models-dish-detection"></span><h2>aiy.vision.models.dish_detection<a class="headerlink" href="#module-aiy.vision.models.dish_detection" title="Permalink to this headline">¶</a></h2>
<p>API for Dish Detection.</p>
<dl class="class">
<dt id="aiy.vision.models.dish_detection.Dish">
<em class="property">class </em><code class="sig-prename descclassname">aiy.vision.models.dish_detection.</code><code class="sig-name descname">Dish</code><span class="sig-paren">(</span><em class="sig-param">sorted_scores</em>, <em class="sig-param">bounding_box</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.dish_detection.Dish" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#tuple" title="(in Python v3.8)"><code class="xref py py-class docutils literal notranslate"><span class="pre">tuple</span></code></a></p>
<dl class="method">
<dt id="aiy.vision.models.dish_detection.Dish.bounding_box">
<em class="property">property </em><code class="sig-name descname">bounding_box</code><a class="headerlink" href="#aiy.vision.models.dish_detection.Dish.bounding_box" title="Permalink to this definition">¶</a></dt>
<dd><p>Alias for field number 1</p>
</dd></dl>

<dl class="method">
<dt id="aiy.vision.models.dish_detection.Dish.sorted_scores">
<em class="property">property </em><code class="sig-name descname">sorted_scores</code><a class="headerlink" href="#aiy.vision.models.dish_detection.Dish.sorted_scores" title="Permalink to this definition">¶</a></dt>
<dd><p>Alias for field number 0</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.dish_detection.get_dishes">
<code class="sig-prename descclassname">aiy.vision.models.dish_detection.</code><code class="sig-name descname">get_dishes</code><span class="sig-paren">(</span><em class="sig-param">result</em>, <em class="sig-param">top_k=3</em>, <em class="sig-param">threshold=0.1</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.dish_detection.get_dishes" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns list of Dish objects decoded from the inference result.</p>
</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.dish_detection.model">
<code class="sig-prename descclassname">aiy.vision.models.dish_detection.</code><code class="sig-name descname">model</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.dish_detection.model" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-aiy.vision.models.face_detection">
<span id="aiy-vision-models-face-detection"></span><h2>aiy.vision.models.face_detection<a class="headerlink" href="#module-aiy.vision.models.face_detection" title="Permalink to this headline">¶</a></h2>
<p>API for Face Detection.</p>
<dl class="class">
<dt id="aiy.vision.models.face_detection.Face">
<em class="property">class </em><code class="sig-prename descclassname">aiy.vision.models.face_detection.</code><code class="sig-name descname">Face</code><span class="sig-paren">(</span><em class="sig-param">face_score</em>, <em class="sig-param">joy_score</em>, <em class="sig-param">bounding_box</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.face_detection.Face" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#tuple" title="(in Python v3.8)"><code class="xref py py-class docutils literal notranslate"><span class="pre">tuple</span></code></a></p>
<dl class="method">
<dt id="aiy.vision.models.face_detection.Face.bounding_box">
<em class="property">property </em><code class="sig-name descname">bounding_box</code><a class="headerlink" href="#aiy.vision.models.face_detection.Face.bounding_box" title="Permalink to this definition">¶</a></dt>
<dd><p>Alias for field number 2</p>
</dd></dl>

<dl class="method">
<dt id="aiy.vision.models.face_detection.Face.face_score">
<em class="property">property </em><code class="sig-name descname">face_score</code><a class="headerlink" href="#aiy.vision.models.face_detection.Face.face_score" title="Permalink to this definition">¶</a></dt>
<dd><p>Alias for field number 0</p>
</dd></dl>

<dl class="method">
<dt id="aiy.vision.models.face_detection.Face.joy_score">
<em class="property">property </em><code class="sig-name descname">joy_score</code><a class="headerlink" href="#aiy.vision.models.face_detection.Face.joy_score" title="Permalink to this definition">¶</a></dt>
<dd><p>Alias for field number 1</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.face_detection.get_faces">
<code class="sig-prename descclassname">aiy.vision.models.face_detection.</code><code class="sig-name descname">get_faces</code><span class="sig-paren">(</span><em class="sig-param">result</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.face_detection.get_faces" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns list of Face objects decoded from the inference result.</p>
</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.face_detection.model">
<code class="sig-prename descclassname">aiy.vision.models.face_detection.</code><code class="sig-name descname">model</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.face_detection.model" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-aiy.vision.models.image_classification">
<span id="aiy-vision-models-image-classification"></span><h2>aiy.vision.models.image_classification<a class="headerlink" href="#module-aiy.vision.models.image_classification" title="Permalink to this headline">¶</a></h2>
<p>API for Image Classification tasks.</p>
<dl class="function">
<dt id="aiy.vision.models.image_classification.get_classes">
<code class="sig-prename descclassname">aiy.vision.models.image_classification.</code><code class="sig-name descname">get_classes</code><span class="sig-paren">(</span><em class="sig-param">result</em>, <em class="sig-param">top_k=None</em>, <em class="sig-param">threshold=0.0</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.image_classification.get_classes" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts image classification model output to list of detected objects.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>result</strong> – output tensor from image classification model.</p></li>
<li><p><strong>top_k</strong> – int; max number of objects to return.</p></li>
<li><p><strong>threshold</strong> – float; min probability of each returned object.</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><p>string, probability: float) pairs ordered by
probability from highest to lowest. The number of pairs is not greater than
top_k. Each probability is greater than threshold. For
example:</p>
<dl class="simple">
<dt>[(‘Egyptian cat’, 0.767578)</dt><dd><p>(‘tiger cat, 0.163574)
(‘lynx/catamount’, 0.039795)]</p>
</dd>
</dl>
</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>A list of (class_name</p>
</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.image_classification.get_classes_sparse">
<code class="sig-prename descclassname">aiy.vision.models.image_classification.</code><code class="sig-name descname">get_classes_sparse</code><span class="sig-paren">(</span><em class="sig-param">result</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.image_classification.get_classes_sparse" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts sparse image classification model output to list of detected objects.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>result</strong> – sparse output tensor from image classification model.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p><p>string, probability: float) pairs ordered by
probability from highest to lowest.
For example:</p>
<dl class="simple">
<dt>[(‘Egyptian cat’, 0.767578)</dt><dd><p>(‘tiger cat, 0.163574)</p>
</dd>
</dl>
</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>A list of (class_name</p>
</dd>
</dl>
</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.image_classification.model">
<code class="sig-prename descclassname">aiy.vision.models.image_classification.</code><code class="sig-name descname">model</code><span class="sig-paren">(</span><em class="sig-param">model_type='image_classification_mobilenet'</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.image_classification.model" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="aiy.vision.models.image_classification.sparse_configs">
<code class="sig-prename descclassname">aiy.vision.models.image_classification.</code><code class="sig-name descname">sparse_configs</code><span class="sig-paren">(</span><em class="sig-param">top_k=0</em>, <em class="sig-param">threshold=0.0</em>, <em class="sig-param">model_type='image_classification_mobilenet'</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.image_classification.sparse_configs" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-aiy.vision.models.inaturalist_classification">
<span id="aiy-vision-models-inaturalist-classification"></span><h2>aiy.vision.models.inaturalist_classification<a class="headerlink" href="#module-aiy.vision.models.inaturalist_classification" title="Permalink to this headline">¶</a></h2>
<p>API for detecting plants, insects, and birds from the iNaturalist dataset.</p>
<dl class="class">
<dt id="aiy.vision.models.inaturalist_classification.Model">
<em class="property">class </em><code class="sig-prename descclassname">aiy.vision.models.inaturalist_classification.</code><code class="sig-name descname">Model</code><a class="headerlink" href="#aiy.vision.models.inaturalist_classification.Model" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#aiy.vision.models.inaturalist_classification.Model" title="aiy.vision.models.inaturalist_classification.Model"><code class="xref py py-class docutils literal notranslate"><span class="pre">aiy.vision.models.inaturalist_classification.Model</span></code></a></p>
<dl class="method">
<dt id="aiy.vision.models.inaturalist_classification.Model.compute_graph">
<code class="sig-name descname">compute_graph</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.inaturalist_classification.Model.compute_graph" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.inaturalist_classification.get_classes">
<code class="sig-prename descclassname">aiy.vision.models.inaturalist_classification.</code><code class="sig-name descname">get_classes</code><span class="sig-paren">(</span><em class="sig-param">result</em>, <em class="sig-param">top_k=None</em>, <em class="sig-param">threshold=0.0</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.inaturalist_classification.get_classes" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="aiy.vision.models.inaturalist_classification.get_classes_sparse">
<code class="sig-prename descclassname">aiy.vision.models.inaturalist_classification.</code><code class="sig-name descname">get_classes_sparse</code><span class="sig-paren">(</span><em class="sig-param">result</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.inaturalist_classification.get_classes_sparse" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="aiy.vision.models.inaturalist_classification.model">
<code class="sig-prename descclassname">aiy.vision.models.inaturalist_classification.</code><code class="sig-name descname">model</code><span class="sig-paren">(</span><em class="sig-param">model_type</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.inaturalist_classification.model" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="aiy.vision.models.inaturalist_classification.sparse_configs">
<code class="sig-prename descclassname">aiy.vision.models.inaturalist_classification.</code><code class="sig-name descname">sparse_configs</code><span class="sig-paren">(</span><em class="sig-param">model_type</em>, <em class="sig-param">top_k=None</em>, <em class="sig-param">threshold=0.0</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.inaturalist_classification.sparse_configs" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-aiy.vision.models.object_detection">
<span id="aiy-vision-models-object-detection"></span><h2>aiy.vision.models.object_detection<a class="headerlink" href="#module-aiy.vision.models.object_detection" title="Permalink to this headline">¶</a></h2>
<p>API for Object Detection tasks.</p>
<dl class="class">
<dt id="aiy.vision.models.object_detection.Object">
<em class="property">class </em><code class="sig-prename descclassname">aiy.vision.models.object_detection.</code><code class="sig-name descname">Object</code><span class="sig-paren">(</span><em class="sig-param">bounding_box</em>, <em class="sig-param">kind</em>, <em class="sig-param">score</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.object_detection.Object" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<p>Object detection result.</p>
<dl class="attribute">
<dt id="aiy.vision.models.object_detection.Object.BACKGROUND">
<code class="sig-name descname">BACKGROUND</code><em class="property"> = 0</em><a class="headerlink" href="#aiy.vision.models.object_detection.Object.BACKGROUND" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="aiy.vision.models.object_detection.Object.CAT">
<code class="sig-name descname">CAT</code><em class="property"> = 2</em><a class="headerlink" href="#aiy.vision.models.object_detection.Object.CAT" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="aiy.vision.models.object_detection.Object.DOG">
<code class="sig-name descname">DOG</code><em class="property"> = 3</em><a class="headerlink" href="#aiy.vision.models.object_detection.Object.DOG" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="aiy.vision.models.object_detection.Object.PERSON">
<code class="sig-name descname">PERSON</code><em class="property"> = 1</em><a class="headerlink" href="#aiy.vision.models.object_detection.Object.PERSON" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="function">
<dt id="aiy.vision.models.object_detection.get_objects">
<code class="sig-prename descclassname">aiy.vision.models.object_detection.</code><code class="sig-name descname">get_objects</code><span class="sig-paren">(</span><em class="sig-param">result</em>, <em class="sig-param">threshold=0.3</em>, <em class="sig-param">offset=(0</em>, <em class="sig-param">0)</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.object_detection.get_objects" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="aiy.vision.models.object_detection.get_objects_sparse">
<code class="sig-prename descclassname">aiy.vision.models.object_detection.</code><code class="sig-name descname">get_objects_sparse</code><span class="sig-paren">(</span><em class="sig-param">result</em>, <em class="sig-param">offset=(0</em>, <em class="sig-param">0)</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.object_detection.get_objects_sparse" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="aiy.vision.models.object_detection.model">
<code class="sig-prename descclassname">aiy.vision.models.object_detection.</code><code class="sig-name descname">model</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.object_detection.model" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="aiy.vision.models.object_detection.sparse_configs">
<code class="sig-prename descclassname">aiy.vision.models.object_detection.</code><code class="sig-name descname">sparse_configs</code><span class="sig-paren">(</span><em class="sig-param">threshold=0.3</em><span class="sig-paren">)</span><a class="headerlink" href="#aiy.vision.models.object_detection.sparse_configs" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="voice.html" class="btn btn-neutral float-right" title="Voice Kit overview" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="aiy.vision.inference.html" class="btn btn-neutral float-left" title="aiy.vision.inference" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2018, Google LLC

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>